package com.probox.common.core.enums;

public enum PlanStatusEnum {
    Tobebooked("2", "未预约"),
    Reserved("1", "已预约"),
    Closed("0", "已关闭"),
    ToBeConfirmed("3", "待确认"),
    prohibit("4", "禁止使用"),
    Controllable("5", "可控制的");


    private PlanStatusEnum(String k, String v) {
        this.setKey(k);
        this.setValue(v);
    }

    public static String getNameByKey(String key) {
        String rst = "";
        for (PlanStatusEnum oe : PlanStatusEnum.values()) {
            if (oe.getKey().equals(key)) {
                rst = oe.getValue();
            }
        }
        return rst;
    }

    private String key;
    private String value;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

}
